/**
 * 
 */
package com.jinmei.mail.oauth;

/**
 * @author richard
 *
 */
public class OAuth {
	// uri
	public static final String URI_GET_TOKEN = "https://exmail.qq.com/cgi-bin/token";
	public static final String URI_LISTEN = "http://openapi.exmail.qq.com:12211/openapi/listen";
	public static final String URI_ALL_USER_ACCOUNTS = "http://openapi.exmail.qq.com:12211/openapi/user/list";
	public static final String URI_NEW_MAIL_COUNT = "http://openapi.exmail.qq.com:12211/openapi/mail/newcount";
	public static final String URI_AUTH_KEY = "http://openapi.exmail.qq.com:12211/openapi/mail/authkey";
	
	// TODO shld move them to db or config
	public static final String CLIENT_ID = "2355001521";
//    public static final String CLIENT_SECRET = "c60f245912d5561973fd295ae2d64191";
	public static final String CLIENT_SECRET = "0a7a64f6b28b4ff74498c8a33f4540f0";
    
    // params
	public static final String OAUTH_CLIENT_ID = "client_id";
    public static final String OAUTH_CLIENT_SECRET = "client_secret";
    public static final String OAUTH_GRANT_TYPE = "grant_type";
    public static final String OAUTH_REDIRECT_URI = "redirect_uri";
    
    public static final String OAUTH_ACCESS_TOKEN = "access_token";
    public static final String OAUTH_EXPIRES_IN = "expires_in";
    public static final String OAUTH_REFRESH_TOKEN = "refresh_token";
    public static final String OAUTH_TOKEN_TYPE = "token_type";
    
    public static final String CLIENT_CREDENTIALS = "client_credentials";
    public static final String OAUTH_HEADER_NAME = "Bearer";
    
    public static final String VERSION = "Ver";
    public static final String ALIAS = "Alias";
    public static final String RET = "ret";
    
}
